package com.easyedu.helper;

import com.easyedu.helper.service.StudentService;
import com.easyedu.helper.service.Teacher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;


/**
 * @author mengranliu
 * @date 2022/3/1
 */
@Component
public class AppRunner implements ApplicationRunner {


     @Autowired
     private Teacher teacher;

     @Autowired
     private StudentService studentService;

     @Override
     public void run(ApplicationArguments args) throws Exception {

//          teacher.createStudent();
//          studentService.createStudent();
     }
}
